import Mock from 'mockjs'
// import { param2Obj } from '@/utils'

const List = []

List.push(Mock.mock({
  date: '2016-05-03',
  name: '王小虎',
  province: '上海',
  city: '普陀区',
  address: '上海市普陀区金沙江路 1518 弄',
  zip: 200333
}))

List.push(Mock.mock({
  date: '2016-05-06',
  name: '王小虎',
  province: '上海',
  city: '普陀区',
  address: '上海市普陀区金沙江路 1518 弄',
  zip: 200333
}))

export default {
  getList: () => {
    return {
      total: List.length,
      items: List
    }
  }
}
